Okay.
So in today's lesson we're going to be having a look at teams.
Now most of the things to do with teams you are going to have to script.
We're going to start them off now.
But this will be something that will definitely finish off later on in the course when we get into scripting.
Okay.
So first off, what is a team?
Well, a team allows you to well you can assign players to different teams.
For example, if you had a game where two teams are competing against each other, it might be a good
idea to add a team object and assign players to their teams.
Okay.
And if I quickly play the game just to show you the leaderboard that comes up when you add the teams
in the leaderboard will appear or the leaderboard appears here, but the teams will appear on the leaderboard
as well.
And that's the biggest idea, the main idea why people use teams.
Let's delete that tool from some lessons ago okay.
So teams you add teams in the teams section in explorer okay.
And to add a team it's very simple.
It's just an object.
So click the plus search up a team and add that there.
And that is it okay.
You've now got a team into your game.
Let's go back to teams.
Let's duplicate that and let's have a look at their properties.
So I've got one called Auto assignable.
And then we've got a name parent that kind of stuff.
Let's give them some names first.
So let's call this um I don't know.
Um let's call this um blue team and red team.
Okay, cool.
And let's also give them the colors as well, because each team has their own color.
Um, it will be it will change the color of their, um, their name tag above their head when they're
playing the game, and also the color of their, um, username in the leaderboard as well.
So let's change the blue to really blue and the red to really red.
Cool.
And then the only other property you haven't looked at would be auto assignable.
And what's auto assignable means is basically will it will the player be automatically assigned to this
property?
I'm sorry to this team.
So if you have a team which you want, um, any new players to join with, you would have all to assignable
on for that and off for the rest of them.
Okay.
If you don't want the player to be able to join with that role or to assignable, should be off.
Okay.
Um, if you're wanting to change what team the player has, um, after they join, you'd have to use
scripting for that.
So it will be something we definitely look at, but not just yet.
So let's play the game and see what these these teams look like.
So we can see here I've been automatically assigned to the blue team.
And there's also a red team which no one else is on at the moment.
Okay.
Um but is that simple?
That's all there is to teams at the moment.
Okay.
Again, we are going to look at these more, um, when we get onto scripting, we're going to learn
how to change, how to let the player be able to change team during the game.
But for now, we only where you can change what team the player is on is just by using the auto assignable
property.
Okay, um, and that's about it.